import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/web-api/business/alarm/getAllAlarm',
    method: 'get',
    params: query
  })
}
export function getAlarm(id) {
  return request({
    url: '/web-api/business/alarm/' + id,
    method: 'get'
  })
}
export function add(data) {
  return request({
    url: '/web-api/business/alarm/save',
    method: 'post',
    data
  })
}
export function upData(data) {
  return request({
    url: '/web-api/business/alarm/updateById',
    method: 'post',
    data
  })
}
export function batch(data) {
  return request({
    url: '/web-api/business/alarm/updateBatchById',
    method: 'post',
    data
  })
}
export function download(query) {
  return request({
    url: '/web-api/business/alarm/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
